<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2020/7/6
  Time: 19:47
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>使用EL取出各个域中的值</title>
</head>
<body>
<%
pageContext.setAttribute("name","孙悟空");
request.setAttribute("name","唐僧");
session.setAttribute("name","猪八戒");
application.setAttribute("name","沙僧");
%>

页面域：${pageScope.name}<hr/>
请求域：${requestScope.name}<hr/>
会话域：${sessionScope.name}<hr/>
上下文域：${applicationScope.name}<hr/>

自动查找：${name}

</body>
</html>
